//服务层
app.service('houseService', function ($http) {


    this.findAll = function () {
        return $http.get("/house/selectAll");
    }


    this.findPage = function (page, size) {
        return $http.get("/house/searchAll?page=" + page + "&size=" + size);
    }

    this.search = function (page, size,searchEntity) {
        return $http.post("/house/search?page=" + page + "&size=" +
            size, searchEntity);
    }

    this.selectHouseCityList = function () {
        return $http.get("/house/selectHouseCityList");
    }

    this.selectHouseBuiltList = function () {
        return $http.get("/house/selectHouseBuiltList");
    }

    this.selectHouseBuiltList = function () {
        return $http.get("/house/selectHouseBuiltList");
    }

    this.selectHouseCommunitynameList = function () {
        return $http.get("/house/selectHouseCommunitynameList");
    }

    this.selectHouseAreaList = function () {
        return $http.get("/house/selectHouseAreaList");
    }

    this.selectHousebedsList = function () {
        return $http.get("/house/selectHousebedsList");
    }

    this.delete = function (ids) {
        return $http.post("/house/dels?ids="+ids)
    }


})